<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="Hexo Theme Keep">
    <meta name="description" content="Hexo Theme Keep">
    <meta name="author" content="Blank">
    
    <title>
        
            ArchLinux配置 |
        
        Blankの博客
    </title>
    
<link rel="stylesheet" href="/css/style.css">

    <link rel="shortcut icon" href="/images/logo.jpg">
    <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/font/css/fontawesome.min.css">
    <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/font/css/regular.min.css">
    <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/font/css/solid.min.css">
    <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/font/css/brands.min.css">
    <script id="hexo-configurations">
    let KEEP = window.KEEP || {}
    KEEP.hexo_config = {"hostname":"example.com","root":"/","language":"zh-CN","path":"search.json"}
    KEEP.theme_config = {"toc":{"enable":true,"number":true,"expand_all":true,"init_open":true},"style":{"primary_color":"#0066cc","logo":"/images/logo.jpg","favicon":"/images/logo.jpg","avatar":"/images/logo.jpg","font_size":"18px","font_family":"STKaiti","hover":{"shadow":true,"scale":true},"first_screen":{"enable":true,"header_transparent":true,"background_img":"/images/bg.svg","description":"Keep writing and Keep loving.","font_color":null,"hitokoto":true},"scroll":{"progress_bar":true,"percent":true}},"local_search":{"enable":true,"preload":true},"code_copy":{},"code_block":{"tools":{"enable":true,"style":"mac"},"highlight_theme":"default"},"side_tools":{},"pjax":{"enable":true},"lazyload":{"enable":true},"comment":{"enable":false,"use":"gitalk","valine":{"appid":null,"appkey":null,"server_urls":null,"placeholder":null},"gitalk":{"github_id":"5ober","github_admins":"5ober","repository":"hexo-blog-comments","client_id":"40d85a7b36388c0b5094","client_secret":"6c7eab92d24b6f1bdfbcdf077c73e86841b35d5e","proxy":null},"twikoo":{"env_id":null,"region":null,"version":"1.6.8"},"waline":{"server_url":null,"reaction":false,"version":2}},"post":{"author_label":{"enable":true,"auto":false,"custom_label_list":["Trainee","Engineer","Java工程师"]},"word_count":{"enable":true,"wordcount":true,"min2read":true},"img_align":"left","copyright_info":true},"version":"3.6.1"}
    KEEP.language_ago = {"second":"%s 秒前","minute":"%s 分钟前","hour":"%s 小时前","day":"%s 天前","week":"%s 周前","month":"%s 个月前","year":"%s 年前"}
    KEEP.language_code_block = {"copy":"复制代码","copied":"已复制","fold":"折叠代码块","folded":"已折叠"}
    KEEP.language_copy_copyright = {"copy":"复制版权信息","copied":"已复制","title":"原文标题","author":"原文作者","link":"原文链接"}
  </script>
<meta name="generator" content="Hexo 6.3.0"><link rel="alternate" href="/atom.xml" title="Blankの博客" type="application/atom+xml">
</head>


<body>
<div class="progress-bar-container">
    
        <span class="scroll-progress-bar"></span>
    

    
        <span class="pjax-progress-bar"></span>
        <i class="pjax-progress-icon fas fa-circle-notch fa-spin"></i>
    
</div>


<main class="page-container">

    

    <div class="page-main-content">

        <div class="page-main-content-top">
            
<header class="header-wrapper">

    <div class="header-content">
        <div class="left">
            
                <a class="logo-image" href="/">
                    <img src="/images/logo.jpg">
                </a>
            
            <a class="logo-title" href="/">
               Blankの博客
            </a>
        </div>

        <div class="right">
            <div class="pc">
                <ul class="menu-list">
                    
                        <li class="menu-item">
                            <a class=""
                               href="/"
                            >
                                首页
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/archives"
                            >
                                归档
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/tags"
                            >
                                标签
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/categories"
                            >
                                分类
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/links"
                            >
                                友链
                            </a>
                        </li>
                    
                        <li class="menu-item">
                            <a class=""
                               href="/about"
                            >
                                关于
                            </a>
                        </li>
                    
                    
                        <li class="menu-item search search-popup-trigger">
                            <i class="fas fa-search"></i>
                        </li>
                    
                </ul>
            </div>
            <div class="mobile">
                
                    <div class="icon-item search search-popup-trigger"><i class="fas fa-search"></i></div>
                
                <div class="icon-item menu-bar">
                    <div class="menu-bar-middle"></div>
                </div>
            </div>
        </div>
    </div>

    <div class="header-drawer">
        <ul class="drawer-menu-list">
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/">首页</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/archives">归档</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/tags">标签</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/categories">分类</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/links">友链</a>
                </li>
            
                <li class="drawer-menu-item flex-center">
                    <a class=""
                       href="/about">关于</a>
                </li>
            
        </ul>
    </div>

    <div class="window-mask"></div>

</header>


        </div>

        <div class="page-main-content-middle">

            <div class="main-content">

                
                    <div class="fade-in-down-animation">
    <div class="post-page-container">
        <div class="article-content-container">

            <div class="article-title">
                <span class="title-hover-animation">ArchLinux配置</span>
            </div>

            
                <div class="article-header">
                    <div class="avatar">
                        <img src="/images/logo.jpg">
                    </div>
                    <div class="info">
                        <div class="author">
                            <span class="name">Blank</span>
                            
                                <span class="author-label">Java工程师</span>
                            
                        </div>
                        <div class="meta-info">
                            
<div class="article-meta-info">
    <span class="article-date article-meta-item">
        
            <i class="fa-regular fa-calendar-plus"></i>&nbsp;
        
        <span class="pc">2023-04-26 00:00:00</span>
        <span class="mobile">2023-04-26 00:00</span>
    </span>
    
        <span class="article-update-date article-meta-item">
        <i class="fas fa-file-pen"></i>&nbsp;
        <span class="pc">2023-05-04 03:00:47</span>
    </span>
    
    
        <span class="article-categories article-meta-item">
            <i class="fas fa-folder"></i>&nbsp;
            <ul>
                
                    <li>
                        <a href="/categories/ArchLinux/">ArchLinux</a>&nbsp;
                    </li>
                
            </ul>
        </span>
    
    
        <span class="article-tags article-meta-item">
            <i class="fas fa-tags"></i>&nbsp;
            <ul>
                
                    <li>
                        <a href="/tags/Linux/">Linux</a>&nbsp;
                    </li>
                
            </ul>
        </span>
    

    
    
        <span class="article-wordcount article-meta-item">
            <i class="fas fa-file-word"></i>&nbsp;<span>1.3k 字</span>
        </span>
    
    
        <span class="article-min2read article-meta-item">
            <i class="fas fa-clock"></i>&nbsp;<span>6 分钟</span>
        </span>
    
    
        <span class="article-pv article-meta-item">
            <i class="fas fa-eye"></i>&nbsp;<span id="busuanzi_value_page_pv"></span>
        </span>
    
</div>

                        </div>
                    </div>
                </div>
            

            <div class="article-content keep-markdown-body">
                

                <h2 id="ArchLinux配置"><a href="#ArchLinux配置" class="headerlink" title="ArchLinux配置"></a>ArchLinux配置</h2><figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">nano /etc/pacman.conf</span><br><span class="line"></span><br><span class="line">color</span><br><span class="line"></span><br><span class="line"><span class="comment"># 更换镜像源</span></span><br><span class="line">reflector --country China --age 24 --sort rate --protocol https --save /etc/pacman.d/mirrorlist</span><br><span class="line"></span><br><span class="line">nano /etc/pacman.d/mirrorlist</span><br><span class="line"></span><br><span class="line"><span class="attr">Server</span> = https://mirrors.tuna.tsinghua.edu.cn/archlinux/<span class="variable">$repo</span>/os/<span class="variable">$arch</span></span><br><span class="line"></span><br><span class="line">pacman -Syy</span><br><span class="line"></span><br><span class="line">lsblk -f</span><br></pre></td></tr></table></figure>

<h4 id="安装linux内核"><a href="#安装linux内核" class="headerlink" title="安装linux内核"></a>安装linux内核</h4><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacstrap -K /mnt base linux linux-firmware </span><br></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">pacstrap -K /mnt base linux linux-firmware linux-headers base base-devel vim nano</span><br><span class="line">bash-completion</span><br></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">genfstab -U /mnt</span><br></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">genfstab -U /mnt &gt;&gt; /mnt/etc/fstab</span><br></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cat /mnt/etc/fstab</span><br></pre></td></tr></table></figure>

<p>nano &#x2F;etc&#x2F;default&#x2F;grub</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S efivar networkmanager </span><br></pre></td></tr></table></figure>



<figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 卸载驱动器</span></span><br><span class="line">lsnlk</span><br><span class="line">umount /mnt/boot</span><br><span class="line"></span><br><span class="line">umount /mnt</span><br></pre></td></tr></table></figure>



<h4 id="设置时区与系统时间同步"><a href="#设置时区与系统时间同步" class="headerlink" title="设置时区与系统时间同步"></a>设置时区与系统时间同步</h4><figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">timedatectl set-timezone Asia/Shanghai</span><br><span class="line"></span><br><span class="line">timedatectl set-ntp true</span><br><span class="line"></span><br><span class="line">timedatectl status</span><br></pre></td></tr></table></figure>

<h4 id="修改环境变量"><a href="#修改环境变量" class="headerlink" title="修改环境变量"></a>修改环境变量</h4><figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br></pre></td><td class="code"><pre><span class="line"> </span><br><span class="line"></span><br><span class="line"><span class="comment"># 进入环境变量文件目录</span></span><br><span class="line"></span><br><span class="line">cd /etc/skel/</span><br><span class="line"></span><br><span class="line"><span class="comment"># 查看隐藏文件 </span></span><br><span class="line"></span><br><span class="line">ls -al</span><br><span class="line"></span><br><span class="line">nano .bashrc </span><br><span class="line">或</span><br><span class="line">vim .bashrc </span><br><span class="line"></span><br><span class="line"><span class="comment"># 设置默认vim编辑器</span></span><br><span class="line"></span><br><span class="line">export <span class="attr">EDITOR</span>=vim</span><br><span class="line"></span><br><span class="line"><span class="comment"># 添加ll 命令</span></span><br><span class="line"></span><br><span class="line">alias <span class="attr">ll</span>=<span class="string">&#x27;ls -l&#x27;</span></span><br><span class="line"></span><br><span class="line">alias <span class="attr">ls</span>=<span class="string">&#x27;ls --color=auto&#x27;</span></span><br><span class="line">alias <span class="attr">grep</span>=<span class="string">&#x27;grep --color=auto&#x27;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># egrep rgrep 搜索带颜色 yy 复制 p 粘贴</span></span><br><span class="line"></span><br><span class="line">alias <span class="attr">egrep</span>=<span class="string">&#x27;egrep --color=auto&#x27;</span></span><br><span class="line">alias <span class="attr">fgrep</span>=<span class="string">&#x27;fgrep --color=auto&#x27;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 设置别名</span></span><br><span class="line">alias <span class="attr">ls</span>=<span class="string">&#x27;ls --color=auto&#x27;</span></span><br><span class="line">alias <span class="attr">dir</span>=<span class="string">&#x27;dir --color=auto&#x27;</span></span><br><span class="line">alias <span class="attr">vdir</span>=<span class="string">&#x27;vdir --color=auto&#x27;</span></span><br><span class="line"></span><br><span class="line">alias <span class="attr">grep</span>=<span class="string">&#x27;grep --color=auto&#x27;</span></span><br><span class="line">alias <span class="attr">fgrep</span>=<span class="string">&#x27;fgrep --color=auto&#x27;</span></span><br><span class="line">alias <span class="attr">egrep</span>=<span class="string">&#x27;egrep --color=auto&#x27;</span></span><br><span class="line">alias <span class="attr">diff</span>=<span class="string">&#x27;diff --color=auto&#x27;</span></span><br><span class="line">alias <span class="attr">ip</span>=<span class="string">&#x27;ip --color=auto&#x27;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 编写脚本使文件和文件夹高亮</span></span><br><span class="line"></span><br><span class="line"><span class="section">[ ! -e ~/.dircolors ]</span> &amp;&amp; eval $(dircolors -p &gt; ~/.dircolors)</span><br><span class="line"><span class="section">[ -e /bin/dircolors ]</span> &amp;&amp; eval $(dircolors -b  ~/.dircolors)</span><br><span class="line"></span><br><span class="line"><span class="comment"># cp -a 保留原文件属性前提下复制文件到root家目录</span></span><br><span class="line"></span><br><span class="line">cp -a . ~</span><br><span class="line"></span><br><span class="line"><span class="comment"># 进入家目录查看是否复制成功</span></span><br><span class="line"></span><br><span class="line">ls -al /root</span><br><span class="line">根据时间判断复制成功</span><br><span class="line">exit</span><br><span class="line"></span><br><span class="line"><span class="comment"># 重新登录看文件和文件夹是否变颜色</span></span><br><span class="line"></span><br><span class="line">ls -al /</span><br><span class="line"></span><br><span class="line"><span class="comment"># 查看root是否带颜色</span></span><br><span class="line"></span><br><span class="line">grep root /etc/passwd</span><br></pre></td></tr></table></figure>

<p><img  
                     lazyload
                     alt="image"
                     data-src="https://cdn.staticaly.com/gh/5ober/chart-bed@main/20230426/Snipaste_2023-04-20_20-15-32.7dp08w5ml1s0.webp"
                      alt="Snipaste_2023-04-20_20-15-32"
                ></p>
<figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">useradd -m -G wheel sober //添加一个用户在wheel用户组中</span><br><span class="line">passwd sober  //给这个用户添加密码</span><br><span class="line"></span><br><span class="line"><span class="comment"># 添加普通用户</span></span><br><span class="line"></span><br><span class="line">useradd --create-home sober<span class="comment"># 完整写法  简写useradd -d sober</span></span><br><span class="line">id sober</span><br><span class="line"></span><br><span class="line"><span class="comment"># 添加到组</span></span><br><span class="line"></span><br><span class="line">usermod -aG wheel,users,storage,power,lp,adm,optical sober</span><br></pre></td></tr></table></figure>

<p><img  
                     lazyload
                     alt="image"
                     data-src="https://cdn.staticaly.com/gh/5ober/chart-bed@main/20230426/Snipaste_2023-04-20_20-59-51.2hv8xv41qku0.webp"
                      alt="Snipaste_2023-04-20_20-59-51"
                ></p>
<figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">cp /etc/netctl/examples/ehternet-dhcp /etc/netctl/</span><br><span class="line"></span><br><span class="line">nano /etc/netctl/ethernet-dhcp  //修改配置文件</span><br><span class="line">  <span class="attr">Interface</span>=ens33   //配置连接网络名</span><br><span class="line">  <span class="attr">Connection</span>=ethernet   //为有线连接</span><br><span class="line">  <span class="attr">IP</span>=dhcp   //自动分配ip地址</span><br><span class="line">netctl start ethernet-dhcp  //启动网络连接服务</span><br><span class="line">netctl enable ethernet-dhcp //设置开机启动网络连接服务</span><br><span class="line"></span><br><span class="line">netctl stop ethernet-dhcp</span><br><span class="line">netctl enable ethernet-dhcp</span><br></pre></td></tr></table></figure>

<figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">pacman -Syy</span><br><span class="line"></span><br><span class="line">安装图形桌面</span><br><span class="line"></span><br><span class="line">pacman -S xorg</span><br><span class="line"></span><br><span class="line">最小安装 pacman -S xorg-server</span><br><span class="line"></span><br><span class="line">gnome-shell扩展</span><br><span class="line"></span><br><span class="line">sudo dnf install gnome-extensions-app</span><br><span class="line"></span><br><span class="line">sudo apt install gnome-shell-extensions</span><br><span class="line"></span><br><span class="line">sudo dnf install gnome-shell-extensions</span><br><span class="line"></span><br><span class="line">https://extensions.gnome.org/</span><br></pre></td></tr></table></figure>



<h5 id="安装字体"><a href="#安装字体" class="headerlink" title="安装字体"></a>安装字体</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">英文</span></span><br><span class="line">pacman -S ttf-dejavu ttf-droid ttf-hack ttf-font-awesome otf-font-awesome ttf-lato ttf-liberation ttf-linux-libertine ttf-opensans ttf-roboto ttf-ubuntu-font-family</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">中文</span></span><br><span class="line">pacman -S ttf-hannom noto-fonts noto-fonts-extra noto-fonts-emoji noto-fonts-cjk adobe-source-code-pro-fonts adobe-source-sans-fonts adobe-source-serif-fonts adobe-source-han-sans-cn-fonts adobe-source-han-sans-hk-fonts adobe-source-han-sans-tw-fonts adobe-source-han-serif-cn-fonts wqy-zenhei wqy-microhei</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">打开字体引擎</span></span><br><span class="line">nano /etc/profile.d/freetype2.sh</span><br><span class="line">打开注释</span><br></pre></td></tr></table></figure>

<figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"><span class="comment"># 安装显卡驱动</span></span><br><span class="line">intel</span><br><span class="line">pacman -S xf86-video-intel vulkan-intel mesa</span><br><span class="line">AMD </span><br><span class="line">pacman -S xf86-video-amdgpu xf86-video-ati mesa vulkan-radeon</span><br><span class="line">nvidia</span><br><span class="line">pacman -S nvidia nvidia-settings nvidia-utils</span><br><span class="line"></span><br><span class="line"><span class="comment"># 安装桌面环境</span></span><br><span class="line">pacman -S gnome gnome-extra gdm</span><br><span class="line"><span class="comment"># 开启桌面</span></span><br><span class="line">systemctl enable gdm.service</span><br><span class="line"><span class="comment"># 安装声音系统</span></span><br><span class="line">pacman -S alsa-utils pulseaudio pulseaudio-bluetooth cups</span><br><span class="line"></span><br><span class="line">卸载游戏</span><br><span class="line">pacman -Rs gnome-klotski gnome-tetravex gnome-mines gnome-taquin gnome-sudoku gnome-robots gnome-nibbles lightsoff tali quadrapassel swell-foop  five-or-more iagno four-in-a-row gnome-mahjongg gnome-chess gnome-games gnome-hitori</span><br><span class="line"></span><br><span class="line"><span class="comment">#清理安装缓存包</span></span><br><span class="line">pacman -Scc</span><br><span class="line"></span><br><span class="line">安装git </span><br><span class="line">pacman -S git</span><br><span class="line">git clone https://aur.archlinux.org/paru.git</span><br><span class="line">cd paru</span><br><span class="line">sudo gedit /etc/mankpkg.conf</span><br><span class="line">修改job并发</span><br><span class="line"><span class="attr">MAKEFLAGS</span>=<span class="string">&quot;-j$(nproc)&quot;</span></span><br><span class="line">makepkg -si</span><br><span class="line">sudo gedit /etc/paru.conf</span><br><span class="line">取消 注释BottomUp</span><br><span class="line"></span><br><span class="line">sudo pacman -S yay</span><br><span class="line"></span><br><span class="line"><span class="comment"># 删除自带浏览器</span></span><br><span class="line">sudo pacman -Rscn epiphany </span><br></pre></td></tr></table></figure>

<h4 id="Arch-Linux-Network-Manager-的安装和使用教程。"><a href="#Arch-Linux-Network-Manager-的安装和使用教程。" class="headerlink" title="Arch Linux Network Manager 的安装和使用教程。"></a>Arch Linux Network Manager 的安装和使用教程。</h4><h6 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h6><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">pacman -S networkmanager</span></span><br></pre></td></tr></table></figure>

<h6 id="启动"><a href="#启动" class="headerlink" title="启动"></a>启动</h6><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">systemctl <span class="built_in">enable</span> NetworkManager</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">systemctl start NetworkManager</span></span><br></pre></td></tr></table></figure>

<blockquote>
<p>注意服务名的大小写。</p>
</blockquote>
<h6 id="命令行"><a href="#命令行" class="headerlink" title="命令行"></a>命令行</h6><h6 id="WIFI"><a href="#WIFI" class="headerlink" title="WIFI"></a>WIFI</h6><p>查看 WIFI 列表：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">nmcli device wifi list</span></span><br></pre></td></tr></table></figure>

<p>连接 WIFI：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">nmcli device wifi connect wifiname password wifipassword</span></span><br></pre></td></tr></table></figure>

<p>SHELL</p>
<p><strong>wifiname</strong> 和 <strong>wifipassword</strong> 分别为 WIFI 名称和密码，如果有空格，可以用反斜杠（转义符）+空格 <code>\</code> 表示空格。</p>
<h4 id="图形"><a href="#图形" class="headerlink" title="图形"></a>图形</h4><p><a class="link"   target="_blank" rel="noopener" href="https://wiki.archlinux.org/index.php/NetworkManager#Front-ends" >https://wiki.archlinux.org/index.php/NetworkManager#Front-ends<i class="fas fa-external-link-alt"></i></a></p>
<figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">sudo systemctl start vmtoolsd.service</span><br><span class="line">sudo systemctl status vmtoolsd.service</span><br><span class="line">sudo systemctl enable vmtoolsd.service</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<h4 id="Arch-安装Fcitx5-输入法"><a href="#Arch-安装Fcitx5-输入法" class="headerlink" title="Arch 安装Fcitx5 输入法"></a>Arch 安装Fcitx5 输入法</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S fcitx5-im fcitx5-chinese-addons fcitx5-material-color</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">配置环境变量</span></span><br><span class="line">sudo gedit .pam_environment</span><br><span class="line"></span><br><span class="line">GTK_IM_MODULE=fcitx</span><br><span class="line">QT_IM_MODULE=fcitx</span><br><span class="line">XMODIFIERS=@im=fcitx</span><br></pre></td></tr></table></figure>

<p>安装主题</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S fcitx5-nord</span><br><span class="line"></span><br><span class="line">paru fcitx5</span><br></pre></td></tr></table></figure>

<p>安装离线字库</p>
<p>Arch Linux 中文社区仓库 是由 Arch Linux 中文社区驱动的非官方用户仓库。包含中文用户常用软件、工具、字体&#x2F;美化包等。</p>
<p>完整的包信息列表（包名称&#x2F;架构&#x2F;维护者&#x2F;状态）请<a class="link"   target="_blank" rel="noopener" href="https://github.com/archlinuxcn/repo" >点击这里<i class="fas fa-external-link-alt"></i></a>查看。</p>
<ul>
<li>官方仓库地址：<a class="link"   target="_blank" rel="noopener" href="https://repo.archlinuxcn.org/" >https://repo.archlinuxcn.org<i class="fas fa-external-link-alt"></i></a></li>
</ul>
<p>使用方法：在 <code>/etc/pacman.conf</code> 文件末尾添加以下两行：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo gedit /etc/pacman.conf</span><br></pre></td></tr></table></figure>

<figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="section">[archlinuxcn]</span></span><br><span class="line"><span class="attr">Server</span> = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/<span class="variable">$arch</span></span><br></pre></td></tr></table></figure>

<p>之后通过一下命令安装 <code>archlinuxcn-keyring</code> 包导入 GPG key。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -Syy</span><br></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -Sy archlinuxcn-keyring</span><br></pre></td></tr></table></figure>

<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S fcitx5-pinyin-moegirl fcitx5-pinyin-zhwiki </span><br></pre></td></tr></table></figure>



<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">https://extensions.gnome.org</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">好用的扩展插件</span></span><br><span class="line">blur my shell</span><br><span class="line"></span><br><span class="line">Dash to Panel </span><br><span class="line"></span><br><span class="line">Dash to Dock</span><br><span class="line"></span><br><span class="line">ArcMenu</span><br><span class="line"></span><br><span class="line">Desktop icons NG</span><br><span class="line"></span><br><span class="line">vitals</span><br><span class="line"></span><br><span class="line">Just Perfection</span><br></pre></td></tr></table></figure>



<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"># 安装oh my zsh</span><br><span class="line">sh -c &quot;$(curl -fsSL https://gitee.com/caiguang_cc/ohmyzsh/raw/master/tools/install.sh)&quot;</span><br><span class="line"># 卸载oh my zsh</span><br><span class="line">sh -c &quot;$(curl -fsSL https://gitee.com/caiguang_cc/ohmyzsh/raw/master/tools/uninstall.sh)&quot;</span><br><span class="line"></span><br><span class="line">sudo apt install lua5.4</span><br><span class="line"></span><br><span class="line"></span><br></pre></td></tr></table></figure>

<h4 id="安装Typora"><a href="#安装Typora" class="headerlink" title="安装Typora"></a>安装Typora</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">git clone https://aur.archlinux.org/typora-free-cn.git</span><br><span class="line"></span><br><span class="line">makepkg si</span><br></pre></td></tr></table></figure>



<h3 id="gnome-桌面设置修复"><a href="#gnome-桌面设置修复" class="headerlink" title="gnome 桌面设置修复"></a>gnome 桌面设置修复</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">如果系统设置打不开，请重新安装gnome-control-center</span> </span><br><span class="line">sudo apt-get install gnome-control-center			</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">如果设置里只有很少的几个图标请重新安装unity-control-center</span></span><br><span class="line">sudo apt-get install unity-control-center</span><br></pre></td></tr></table></figure>



<h3 id="ibus安装智能拼音"><a href="#ibus安装智能拼音" class="headerlink" title="ibus安装智能拼音"></a>ibus安装智能拼音</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">Ubuntu Debain</span></span><br><span class="line">sudo apt-get install ibus-libpinyin</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">CetOS RedHat</span></span><br><span class="line">sudo yum install ibus-libpinyin</span><br></pre></td></tr></table></figure>


            </div>

            
                <div class="post-copyright-info">
                    
<div class="article-copyright-info-container">
    <ul class="copyright-info-content">
        <li class="post-title">
            <span class="type">本文标题</span>：<span class="content">ArchLinux配置</span>
        </li>
        <li class="post-author">
            <span class="type">本文作者</span>：<span class="content">Blank</span>
        </li>
        <li class="post-time">
            <span class="type">创建时间</span>：<span class="content">2023-04-26 00:00:00</span>
        </li>
        <li class="post-link">
            <span class="type">本文链接</span>：<span class="content">2023/04/26/ArchLinux配置/</span>
        </li>
        <li class="post-license">
            <span class="type">版权声明</span>：<span class="content">本博客所有文章除特别声明外，均采用 <a class="license" target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">BY-NC-SA</a> 许可协议。转载请注明出处！</span>
        </li>
    </ul>
    <div class="copy-copyright-info flex-center tooltip" data-content="复制版权信息" data-offset-y="-2px">
        <i class="fa-solid fa-copy"></i>
    </div>
</div>

                </div>
            

            
                <ul class="post-tags-box">
                    
                        <li class="tag-item">
                            <a href="/tags/Linux/">#Linux</a>&nbsp;
                        </li>
                    
                </ul>
            

            
                <div class="article-nav">
                    
                        <div class="article-prev">
                            <a class="prev"
                               rel="prev"
                               href="/2023/04/26/ArchLinux%E5%AE%89%E8%A3%85%E5%8F%8A%E9%85%8D%E7%BD%AE%E8%BF%87%E7%A8%8B/"
                            >
                            <span class="left arrow-icon flex-center">
                              <i class="fas fa-chevron-left"></i>
                            </span>
                                <span class="title flex-center">
                                <span class="post-nav-title-item">ArchLinux安装及配置过程</span>
                                <span class="post-nav-item">上一篇</span>
                            </span>
                            </a>
                        </div>
                    
                    
                        <div class="article-next">
                            <a class="next"
                               rel="next"
                               href="/2023/04/26/Nona%E9%AB%98%E4%BA%AE%E9%85%8D%E7%BD%AE/"
                            >
                            <span class="title flex-center">
                                <span class="post-nav-title-item">nano语法高亮拼写检查</span>
                                <span class="post-nav-item">下一篇</span>
                            </span>
                                <span class="right arrow-icon flex-center">
                              <i class="fas fa-chevron-right"></i>
                            </span>
                            </a>
                        </div>
                    
                </div>
            

            
        </div>

        
            <div class="toc-content-container">
                <div class="post-toc-wrap">
    <div class="post-toc">
        <ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#ArchLinux%E9%85%8D%E7%BD%AE"><span class="nav-number">1.</span> <span class="nav-text">ArchLinux配置</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%AE%89%E8%A3%85linux%E5%86%85%E6%A0%B8"><span class="nav-number">1.0.1.</span> <span class="nav-text">安装linux内核</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E8%AE%BE%E7%BD%AE%E6%97%B6%E5%8C%BA%E4%B8%8E%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%97%B4%E5%90%8C%E6%AD%A5"><span class="nav-number">1.0.2.</span> <span class="nav-text">设置时区与系统时间同步</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E4%BF%AE%E6%94%B9%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F"><span class="nav-number">1.0.3.</span> <span class="nav-text">修改环境变量</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E5%AD%97%E4%BD%93"><span class="nav-number">1.0.3.1.</span> <span class="nav-text">安装字体</span></a></li></ol></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Arch-Linux-Network-Manager-%E7%9A%84%E5%AE%89%E8%A3%85%E5%92%8C%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B%E3%80%82"><span class="nav-number">1.0.4.</span> <span class="nav-text">Arch Linux Network Manager 的安装和使用教程。</span></a><ol class="nav-child"><li class="nav-item nav-level-6"><a class="nav-link" href="#%E5%AE%89%E8%A3%85"><span class="nav-number">1.0.4.0.1.</span> <span class="nav-text">安装</span></a></li><li class="nav-item nav-level-6"><a class="nav-link" href="#%E5%90%AF%E5%8A%A8"><span class="nav-number">1.0.4.0.2.</span> <span class="nav-text">启动</span></a></li><li class="nav-item nav-level-6"><a class="nav-link" href="#%E5%91%BD%E4%BB%A4%E8%A1%8C"><span class="nav-number">1.0.4.0.3.</span> <span class="nav-text">命令行</span></a></li><li class="nav-item nav-level-6"><a class="nav-link" href="#WIFI"><span class="nav-number">1.0.4.0.4.</span> <span class="nav-text">WIFI</span></a></li></ol></li></ol></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%9B%BE%E5%BD%A2"><span class="nav-number">1.0.5.</span> <span class="nav-text">图形</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Arch-%E5%AE%89%E8%A3%85Fcitx5-%E8%BE%93%E5%85%A5%E6%B3%95"><span class="nav-number">1.0.6.</span> <span class="nav-text">Arch 安装Fcitx5 输入法</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%AE%89%E8%A3%85Typora"><span class="nav-number">1.0.7.</span> <span class="nav-text">安装Typora</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#gnome-%E6%A1%8C%E9%9D%A2%E8%AE%BE%E7%BD%AE%E4%BF%AE%E5%A4%8D"><span class="nav-number">1.1.</span> <span class="nav-text">gnome 桌面设置修复</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#ibus%E5%AE%89%E8%A3%85%E6%99%BA%E8%83%BD%E6%8B%BC%E9%9F%B3"><span class="nav-number">1.2.</span> <span class="nav-text">ibus安装智能拼音</span></a></li></ol></li></ol>
    </div>
</div>

            </div>
        
    </div>
</div>


                
            </div>

        </div>

        <div class="page-main-content-bottom">
            
<footer class="footer">
    <div class="info-container">
        <div class="copyright-info info-item">
            &copy;
            
            2024
            
                &nbsp;<i class="fas fa-heart icon-animate"></i>
                &nbsp;<a href="/">Blank</a>
            
        </div>
        
            <script async data-pjax
                    src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
            <div class="website-count info-item">
                
                
            </div>
        
        <div class="theme-info info-item">
            由 <a target="_blank" href="https://hexo.io">Hexo</a> 驱动&nbsp;|&nbsp;主题&nbsp;<a class="theme-version" target="_blank" href="https://github.com/XPoet/hexo-theme-keep">Keep v3.6.1</a>
        </div>
        
        
            <div class="deploy-info info-item">
                
                    <a target="_blank" rel="nofollow" href="https://gitee.com/lucky0915">
                
                    本站由 <span class="tooltip" data-content="Gitee Pages"><img src="/images/deploy-provider/gitee.png"></span> 提供部署服务
                
                    </a>
                
            </div>
        
    </div>
</footer>

        </div>
    </div>

    
        <div class="post-tools">
            <div class="post-tools-container">
    <ul class="tools-list">
        <!-- TOC aside toggle -->
        
            <li class="tools-item flex-center toggle-show-toc">
                <i class="fas fa-list"></i>
            </li>
        

        <!-- go comment -->
        
    </ul>
</div>

        </div>
    

    <div class="right-bottom-side-tools">
        <div class="side-tools-container">
    <ul class="side-tools-list">
        <li class="tools-item tool-font-adjust-plus flex-center">
            <i class="fas fa-search-plus"></i>
        </li>

        <li class="tools-item tool-font-adjust-minus flex-center">
            <i class="fas fa-search-minus"></i>
        </li>

        <li class="tools-item tool-dark-light-toggle flex-center">
            <i class="fas fa-moon"></i>
        </li>

        <!-- rss -->
        

        

        <li class="tools-item tool-scroll-to-bottom flex-center">
            <i class="fas fa-arrow-down"></i>
        </li>
    </ul>

    <ul class="exposed-tools-list">
        <li class="tools-item tool-toggle-show flex-center">
            <i class="fas fa-cog fa-spin"></i>
        </li>
        
            <li class="tools-item tool-scroll-to-top flex-center">
                <i class="arrow-up fas fa-arrow-up"></i>
                <span class="percent"></span>
            </li>
        
    </ul>
</div>

    </div>

    <div class="zoom-in-image-mask">
    <img class="zoom-in-image">
</div>


    
        <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
          <span class="search-input-field-pre">
            <i class="fas fa-keyboard"></i>
          </span>
            <div class="search-input-container">
                <input autocomplete="off"
                       autocorrect="off"
                       autocapitalize="off"
                       placeholder="搜索..."
                       spellcheck="false"
                       type="search"
                       class="search-input"
                >
            </div>
            <span class="close-popup-btn">
                <i class="fas fa-times"></i>
            </span>
        </div>
        <div id="search-result">
            <div id="no-result">
                <i class="fas fa-spinner fa-pulse fa-5x fa-fw"></i>
            </div>
        </div>
    </div>
</div>

    

</main>



<script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/utils.js"></script><script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/main.js"></script><script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/header-shrink.js"></script><script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/back2top.js"></script><script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/dark-light-toggle.js"></script>




    <script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/local-search.js"></script>



    <script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/code-block.js"></script>



    <script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/lazyload.js"></script>


<div class="post-scripts pjax">
    
        <script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/post-helper.js"></script>
        
            <script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/libs/anime.min.js"></script>
        
        
            <script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/toc.js"></script>
        
    
</div>


    <script src="//cdn.jsdelivr.net/npm/hexo-theme-keep@3.6.1/source/js/libs/pjax.min.js"></script>
<script>
    window.addEventListener('DOMContentLoaded', () => {
        window.pjax = new Pjax({
            selectors: [
                'head title',
                '.page-container',
                '.pjax'
            ],
            history: true,
            debug: false,
            cacheBust: false,
            timeout: 0,
            analytics: false,
            currentUrlFullReload: false,
            scrollRestoration: false,
            // scrollTo: true,
        });

        document.addEventListener('pjax:send', () => {
            KEEP.utils.pjaxProgressBarStart();
        });

        document.addEventListener('pjax:complete', () => {
            KEEP.utils.pjaxProgressBarEnd();
            window.pjax.executeScripts(document.querySelectorAll('script[data-pjax], .pjax script'));
            KEEP.refresh();
        });
    });
</script>



</body>
</html>
